package me.dqn.noway;

import java.util.List;

import me.dqn.noway.bean.PasswordInformation;

public interface InformationManagerCallback {
    /**
     * 获取信息成功
     *
     * @param passwordInformations
     */
    public void onGetAllInformationDone(List<PasswordInformation> passwordInformations);

    /**
     * 获取信息失败
     *
     * @param failedReason
     */
    public void onGetInformationFailed(String failedReason);

    /**
     * 添加信息成功
     */
    public void onAddInformationDone();

    /**
     * 添加信息失败
     *
     * @param reason
     */
    public void onAddInformationFailed(String reason);

    /**
     * 删除信息成功
     */
    public void onDeleteInformationDone();

    /**
     * 删除信息失败
     *
     * @param resaon
     */
    public void onDeleteInformationFailed(String resaon);
}
